home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre3.z / postgre3 / src / lib / H / access / attval.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-27  |  1005 b   |  51 lines

  1. /*
  2.  * attval.h --
  3.  *    POSTGRES attribute value definitions.
  4.  *
  5.  * Identification:
  6.  *    $Header: /private/postgres/src/lib/H/access/RCS/attval.h,v 1.8 1991/11/08 15:42:48 kemnitz Exp $
  7.  */
  8.  
  9. #ifndef    AttValIncluded    /* Include this file only once. */
  10. #define AttValIncluded    1
  11.  
  12. #include "tmp/postgres.h"
  13.  
  14. typedef Datum    AttributeValue;
  15.  
  16. #include "access/attnum.h"
  17. #include "access/htup.h"
  18. #include "access/itup.h"
  19. #include "access/tupdesc.h"
  20.  
  21. /* ----------------
  22.  *    support macros
  23.  * ----------------
  24.  */
  25.  
  26. /*
  27.  * AMgetattr --
  28.  */
  29. #define AMgetattr(tuple, attNum, tupleDescriptor, isNullOutP) \
  30.     index_getattr(tuple, attNum, tupleDescriptor, isNullOutP)
  31.  
  32. /* ----------------
  33.  *    extern decls
  34.  * ----------------
  35.  */
  36.  
  37. /*
  38.  * IndexTupleGetAttributeValue
  39.  *    Returns the value of an index tuple attribute.
  40.  */
  41. extern
  42. AttributeValue
  43. IndexTupleGetAttributeValue ARGS((
  44.     IndexTuple    tuple,
  45.     AttributeNumber    attributeNumber,
  46.     TupleDescriptor    tupleDescriptor,
  47.     Boolean        *isNullOutP
  48. ));
  49.  
  50. #endif    /* !defined(AttValIncluded) */
  51.